-- SCDebuffAction
-- create by chendh
-- 附加状态动作

SCDebuffAction = class("SCDebuffAction", function()
    return ActionBase.create();
end);

function SCDebuffAction.create(target, skillId, effect)
    local self = SCDebuffAction.new();
    self.target = target;
    self.effect = effect;
    self.skillId = skillId;
    return self;
end

-- 构造函数
function SCDebuffAction:ctor()
end

-- 开始播放
function SCDebuffAction:play()
    EventMgr.fire(event.SKY_COMBAT_DEBUFF, {
        ["target"] = self.target,
        ["skillId"] = self.skillId,
        ["effect"] = self.effect
    });

    return 0;
end

return SCDebuffAction;